home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / RIncludes / CommResources.r < prev    next >
Encoding:
C/C++ Source or Header  |  1997-08-12  |  6.3 KB  |  272 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        CommResources.r
  3.  
  4.      Contains:    Communications Toolbox Resource Manager Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1988-1993, 1995-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __COMMRESOURCES_R__
  20. #define __COMMRESOURCES_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26.  
  27. /*----------------------------tbnd • Tool resource bundle list ------------------*/
  28. type 'cbnd' {
  29.         integer = $$CountOf(TypeArray) - 1;
  30.         array TypeArray {
  31.                 literal longint;                                /* Type                 */
  32.                 integer = $$CountOf(IDArray) - 1;
  33.                 wide array IDArray {
  34.                         integer;                                /* Local ID             */
  35.                         integer;                                /* Actual ID            */
  36.                 };
  37.         };
  38. };
  39.  
  40. /*----------------------------fbnd • Tool resource bundle list ------------------*/
  41. type 'fbnd' as 'cbnd';
  42.  
  43. /*----------------------------cbnd • Tool resource bundle list ------------------*/
  44. type 'tbnd' as 'cbnd';
  45.  
  46.  
  47. /*----------------------------flst • Font Family List----------------------------*/
  48. type 'flst' {
  49.         integer = $$CountOf(Fonts);                                /* # of fonts            */
  50.         array Fonts {
  51.             pstring;                                            /*         Font NAME        */
  52.             align word;
  53.             unsigned hex integer    plain;                        /*         Font Style        */
  54.             integer;                                            /*        Font Size        */
  55.             integer;                                            /*         Font Mode        */
  56.         };
  57. };
  58.  
  59.  
  60. /*----------------------------caps • Connection tool capabilities list-----------*/
  61.  
  62. /* Define flags for "Channels" field of 'caps' resource */
  63. #define cmData                (1 << 0)
  64. #define cmCntl                (1 << 1)
  65. #define cmAttn                (1 << 2)
  66.  
  67. #define    cmDataNoTimeout         (1 << 4)
  68. #define    cmCntlNoTimeout     (1 << 5)
  69. #define cmAttnNoTimeout     (1 << 6)
  70.  
  71. #define cmDataClean            (1 << 8)
  72. #define cmCntlClean            (1 << 9)
  73. #define cmAttnClean            (1 << 10)
  74.  
  75. //    for end of message field of caps resource
  76. #define cmFlagsEOM            (1 << 0);
  77.  
  78. /* Connection tool capabilities resource */
  79. type 'caps' {
  80.     integer = $$CountOf (PairsArray);
  81.     
  82.     array PairsArray {
  83.  
  84.         switch {
  85.             case Abort:
  86.                 key literal longint     = 'ABRT';
  87.                 literal longint
  88.                     supported         = 1,
  89.                     notSupported     = 0;
  90.     
  91.             case AppleTalkBased:
  92.                 key literal longint        = 'ATLK';
  93.                 longint    appletalkBased        =    1,
  94.                         notAppletalkBased    =    0;
  95.                         
  96.             case Break:
  97.                 key literal longint     = 'BRK ';
  98.                 literal longint
  99.                     synchronousOnly     = 'SYNC',
  100.                     asynchronousOnly     = 'ASYN',
  101.                     both                 = 'BOTH',
  102.                     notSupported         = 0;
  103.                     
  104.             case Channels:
  105.                 key literal longint     = 'CHAN';
  106.                 hex longint;
  107.                     
  108.             case Close:
  109.                 key literal longint     = 'CLOS';
  110.                 literal longint
  111.                     synchronousOnly     = 'SYNC',
  112.                     asynchronousOnly     = 'ASYN',
  113.                     both                 = 'BOTH',
  114.                     notSupported         = 0;
  115.                     
  116.             case EndOfMessage:
  117.                 key literal longint     = 'EOM ';
  118.                 hex longint;
  119.                 
  120.             case Kill:
  121.                 key literal longint     = 'KILL';
  122.                 literal longint
  123.                     supported         = 1,
  124.                     notSupported     = 0;
  125.                     
  126.             case Listen:
  127.                 key literal longint     = 'LSTN';
  128.                 literal longint
  129.                     synchronousOnly     = 'SYNC',
  130.                     asynchronousOnly     = 'ASYN',
  131.                     both                 = 'BOTH',
  132.                     notSupported         = 0;
  133.                     
  134.             case LowLevelIO:
  135.                 key literal longint     = 'LLIO';
  136.                 literal longint
  137.                     supported         = 1,
  138.                     notSupported     = 0;
  139.                     
  140.             case MinimumMemory:
  141.                 key literal longint     = 'MEMM';
  142.                 hex longint;
  143.                     
  144.             case Open:
  145.                 key literal longint     = 'OPEN';
  146.                 literal longint
  147.                     synchronousOnly     = 'SYNC',
  148.                     asynchronousOnly     = 'ASYN',
  149.                     both                 = 'BOTH',
  150.                     notSupported         = 0;
  151.                     
  152.             case Order:
  153.                 key literal longint     = 'ORDR';
  154.                 longint guaranteed         = 1, 
  155.                         notGuaranteed     = 0;
  156.                 
  157.             case Protocol:
  158.                 key literal longint     = 'PROT';
  159.                 literal longint
  160.                     ISDN    = 'ISDN',
  161.                     TCP     = 'TCP ',
  162.                     ADSP     = 'ADSP',
  163.                     NSP     = 'NSP ',
  164.                     LAT     = 'LAT ',
  165.                     NSPg     = 'NSPg',
  166.                     LATg     = 'LATg',
  167.                     Serial     = 'SERD',
  168.                     Modem    = 'MODM',
  169.                     MacPAD     = 'PAD ';
  170.                     
  171.             case Read:
  172.                 key literal longint     = 'READ';
  173.                 literal longint
  174.                     synchronousOnly     = 'SYNC',
  175.                     asynchronousOnly     = 'ASYN',
  176.                     both                 = 'BOTH',
  177.                     notSupported         = 0;
  178.                     
  179.             case RecommendedMemory:
  180.                 key literal longint     = 'MEMR';
  181.                 hex longint;
  182.                     
  183.             case Reliability:
  184.                 key literal longint     = 'RELY';
  185.                 longint guaranteed         = 1, 
  186.                         notGuaranteed     = 0;
  187.                 
  188.             case Service:
  189.                 key literal longint     = 'SERV';
  190.                 literal longint
  191.                     Datagram             = 'DGRM',
  192.                     Stream                 = 'STRM';
  193.             
  194.             case Timeout:
  195.                 key literal longint     = 'TOUT';
  196.                 literal longint
  197.                     supported         = 1,
  198.                     notSupported     = 0;
  199.                     
  200.             case Write:
  201.                 key literal longint     = 'WRIT';
  202.                 literal longint
  203.                     synchronousOnly     = 'SYNC',
  204.                     asynchronousOnly     = 'ASYN',
  205.                     both                 = 'BOTH',
  206.                     notSupported = 0;
  207.                     
  208.             case XTI:                                /* reserved for Apple for now… */
  209.                 key literal longint     = 'XTI ';
  210.                 literal longint
  211.                     notSupported = 0;
  212.                     
  213.         };
  214.     };
  215. };
  216.  
  217. /*----------------------------faps • File Transfer tool capabilities list-----------*/
  218. type 'faps' {
  219.     integer = $$CountOf (PairsArray);
  220.     
  221.     array PairsArray {
  222.         switch {
  223.             case BatchTransfers:                    /* i.e. support for FTSend/FTReceive */
  224.                 key literal longint        = 'BXFR';
  225.                 literal longint
  226.                     supported            =     1,
  227.                     notSupported        =     0;
  228.     
  229.             case FileTypesSupported:                /* types of files that can be transferred */
  230.                 key literal longint        = 'TYPE';
  231.                 literal longint
  232.                     textOnly            =    'TEXT',
  233.                     allTypes            =    '????';
  234.                 
  235.             case TransferModes:                        /* send/receive or both */
  236.                 key literal longint     = 'MODE';
  237.                 literal longint
  238.                     sendOnly            =     'SEND',
  239.                     receiveOnly            =    'RECV',
  240.                     sendAndReceive         =     'BOTH',
  241.                     sendAndReceiveAsync    =    'ASYN',
  242.                     notSupported         =     0;
  243.         };
  244.     };
  245. };
  246.  
  247. /*----------------------------taps • Terminal tool capabilities list-----------*/
  248. type 'taps' {
  249.     integer = $$CountOf (PairsArray);
  250.     
  251.     array PairsArray {
  252.         switch {
  253.             case TerminalSearching:                    /* i.e. support for TMAddSearch */
  254.                 key literal longint        = 'SRCH';
  255.                 literal longint
  256.                     supported            =     1,
  257.                     notSupported        =     0;
  258.     
  259.             case TerminalType:                /* types of files that can be transferred */
  260.                 key literal longint        = 'TYPE';
  261.                 literal longint
  262.                     graphicsTerminal    =    'GRFX',
  263.                     textTerminal        =    'TEXT',
  264.                     both                =    'BOTH';
  265.                 
  266.         };
  267.     };
  268. };
  269.  
  270. #endif /* __COMMRESOURCES_R__ */
  271.  
  272.